package com.thoughtworks.domain;

public class Book {
    private String title;
    private String author;
    private String year;
    private boolean available;

    public Book(String title, String author, String year, boolean available) {
        this.title = title;
        this.author = author;
        this.year = year;
        this.available = available;
    }

    public String getInfo() {
        return title + " | " + author + " | " + year;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setIsAvailable(boolean available) {
        this.available = available;
    }
}
